import instance from "../utils/request.js";

export const fileUploadAPI = (data)=>{
    return instance({
        url: '/file/upload',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data
    })
}

//头像上传
export const avatarUploadAPI = (data)=>{
    return instance({
        url: '/system/user/profile/avatar',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data
    })
}